package com.hooper.mapper;

import com.hooper.model.system.SysUserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserRoleMapper {
    int deleteById(Long id);

    int insert(SysUserRole row);

    SysUserRole selectById(Long id);

    List<SysUserRole> selectAll();

    int updateById(SysUserRole row);

    int updateRoleByUserId(@Param("id") Long userId, @Param("roleIds") String updatedRoleIds);

}